<template>
  <div id="app">

    <div v-if="isShow">
      <van-skeleton title :row="3" />
    </div>

    <div v-else>
      <router-view></router-view>
    </div>

  </div>
</template>

<script setup>
import { ref , watch } from 'vue';
import { useRoute, useRouter } from 'vue-router'
const route = useRoute()
let isShow = ref(true)

watch(()=>route.name, (newValue, oldValue) => {
  setTimeout(() => {
      isShow.value = false
  }, 800); 
})




// import { ref, onMounted } from 'vue';

// const isShow = ref(true);

// onMounted(() => {
//   isShow.value = false;

// });
</script>

<style lang="scss" scoped></style>